package com.museum.controller.APi.feignAPI;

import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import com.museum.entity.DO.DepLog;
import com.museum.entity.FIND.QueryDepLog;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "item调用接口")
public interface FeignLogController {
    /**
     * 添加日志
     *
     * @param
     * @return
     */
    @PostMapping("addLog")
    @ApiOperation(value = "添加日志")
    BaseResponse<JSONObject> addLog(@RequestParam String depository, @RequestParam String ioTime, @RequestParam String ioType, @RequestParam String note,
                                    @RequestParam String itemName, @RequestParam String logType, @RequestParam Integer areaNumber);
    // 添加日志
//                QueryDepLog depLog = new QueryDepLog();
////                depLog.setAreaNumber((Integer)data.get("areaNumber"));
//                depLog.setAreaNumber(226);
//                depLog.setDepository(depLoc);
//                depLog.setIoTime(input_time);
//                depLog.setIoType("入库");
//                depLog.setLogType(item.getItemType());
//                depLog.setNote(note);
//                depLog.setItemName(item.getItemName());
//                depLog.setTitle(item.getItemName() + "入库");
    /**
     * 测试
     *
     * @param
     * @return
     */
    @GetMapping("testLog")
    @ApiOperation(value = "测试")
    BaseResponse<JSONObject> testLog(@RequestParam("test") String test);
}
